-- GENERATED SPELL FOR [Twilight Keeper Havunth] --


function spell0_11804(pUnit, Event) --@Fire Blast,n/a--
pUnit:FullCastSpellOnTarget(13339,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_11804', 618, 1)
end

function spell1_11804(pUnit, Event) --@Fire Nova,Self--
pUnit:FullCastSpellOnTarget(17366,pUnit)
pUnit:RegisterEvent('Sorts_11804', 614, 1)
end

function Sorts_11804(pUnit, Event)
local choix_sorts_11804 = math.random(0, 1)
if choix_sorts_11804 == 0 then
pUnit:RegisterEvent('spell0_11804', 1, 1)
end
if choix_sorts_11804 == 1 then
pUnit:RegisterEvent('spell1_11804', 1, 1)
end
end

function mob11804_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_11804', math.random(1500, 3000), 1)
end

function mob11804_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11804_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob11804_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(11804, 1, 'mob11804_Action')
RegisterUnitEvent(11804, 2, 'mob11804_Leave')
RegisterUnitEvent(11804, 3, 'mob11804_Kill')
RegisterUnitEvent(11804, 4, 'mob11804_Die')
